package cn.ccew.common.utils;

public class StringTool {

	
	public static String  ObjectToString(Object o){
		if(o==null) return "";
		else  return o.toString();
	}
	
	public static int  ParameterToInt(Object o,int defaut){
		try{
			if(o==null) return defaut;
			else return  Integer.parseInt(o.toString());
		}
		catch (Exception e) {
		    return defaut;
		}
	}
}
